package com.tim.shadow.lib.image;

import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;

import com.tim.shadow.lib.util.MD5;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Environment;

/*
 * Author: poper Email:xut@bluemobi.cn
 * Created Date:2013-4-17
 * Copyright @ 2013 BU
 * Description: 类描述
 *
 * History:
 */
public class TImageSoftReferece extends SoftReference<Bitmap> {
	public static String baseLocalURL  ;

	String localUrl;
	String netUrl;

	public TImageSoftReferece(Bitmap r, ReferenceQueue<? super Bitmap> q,
			String url) {
		super(r, q);
		this.netUrl = url;
		this.localUrl = baseLocalURL + MD5.Md5(url) + ".png";
	}

	public TImageSoftReferece(Bitmap r, String url) {
		this(r, null, url);
	}

	public String getLocalUrl() {
		return localUrl;
	}

	public String getNetUrl() {
		return netUrl;
	}

}
